{% extends "form.html" %}

{% block form_title %}新增/编辑用户{% endblock %}

{% block form %}
    <form id='form_post' class="form" action="{{ url_for('edit_user')}}" method="post" name="edit">
    	{#{form.csrf_token}#}
    	{% if is_edit %}
	      {{render_field(form.username,readonly="true")}}
	      {{render_field(form.remarkname)}}
	      {{render_field(form.email,readonly="true") }}
    	{% else %}
	      {{render_field(form.username)}}
	      {{render_field(form.remarkname)}}
	      {{render_field(form.pwd, type="text") }}
	      {{render_field(form.email) }}
    	{% endif %}
		<input type="hidden" name="uid" value="{{curr_user_id}}"/>
    </form>
{% endblock form %}